tools/ocaml: Change Xb.input to return Packet.t option
authorEdwin Török <edvin.torok@citrix.com>
Wed, 12 Oct 2022 18:13:02 +0000 (19:13 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 1 Nov 2022 14:07:24 +0000 (14:07 +0000)
commit59981b08c8ef6eed37b1171656c2a5f3b4b74012
tree8219acb2e9b7081c470f3cd0c57e29a87c398e0b
parent8b60ad49b46f2e020e0f0847df80c768d669cdb2
tools/ocaml: Change Xb.input to return Packet.t option

The queue here would only ever hold at most one element.  This will simplify
follow-up patches.

This is part of XSA-326.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
(cherry picked from commit c0a86a462721008eca5ff733660de094d3c34bc7)
tools/ocaml/libs/xb/xb.ml
tools/ocaml/libs/xb/xb.mli
tools/ocaml/libs/xs/xsraw.ml
tools/ocaml/xenstored/connection.ml
tools/ocaml/xenstored/process.ml